package com.unohacha.qqj.fzdr;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.unohacha.qqj.mylibrary.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 轮播详情页
 */
public class BannerDetailActivity extends BaseActivity implements View.OnClickListener{

    @BindView(R.id.common_back)
    ImageView commonBack;
    @BindView(R.id.common_title)
    TextView commonTitle;
    @BindView(R.id.common_right_image)
    ImageView commonRightImage;
    @BindView(R.id.common_right_text)
    TextView commonRightText;
    @BindView(R.id.home1_title)
    LinearLayout home1Title;
    @BindView(R.id.webView)
    WebView webView;
    private String url;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_banner_detail;
    }

    @Override
    protected void initView() {
        commonTitle.setText("广告详情");
        commonRightImage.setVisibility(View.INVISIBLE);
        
        if(getIntent() != null){
            url = getIntent().getStringExtra("url");
        }
        
        webView.loadUrl(url);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.common_back:
                finish();
                break;
        }
    }
}
